{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}
<script type="text/javascript">
<!--
function agOpenInfoBox(value) {ldelim}
	var agBoxInfoDiv = new Element('div', {ldelim} id: "agBoxInfoDiv" {rdelim});
	var info 	= '<div class="ag_agora"><div class="ag_outerwrap" style="padding:10px;">'
				+ '<strong>##URL:##</strong><br/>'
				+ '<textarea cols="10" rows="5" readonly="readonly" style="width:90%;"'
				+ ' onclick="this.focus();this.select()">'+value+'</textarea>'
				+ '</div></div>';

	agBoxInfoDiv.innerHTML = info;

	SqueezeBox.fromElement(agBoxInfoDiv, {ldelim}handler: 'adopt', size: {ldelim} x: 300, y: 150}{rdelim});
{rdelim}
//-->
</script>

<div class="ag_postwrap">
	<div class="ag_rightend">
		<h2 class="ag_headerbar"><span class="ag_middle">##Section gallery##</span></h2>
	</div>

	<div class="ag_outerwrap">
	{if count($images.imageThumb) > 0}
		<div id="agImageGalleryThumbsContainer">
		<ul id="agImageGalleryThumbs">
		{if count($images.imageThumb) > 0}
		{capture assign=imgCount}0{/capture}
			{foreach from=$images.imageThumb item=image}
			<li>
				<a href="{$images.imageFull[$imgCount]}" class="agImageGalleryThumbs">
					<img src="{$image}" alt="{$image}" {$images.imageThumbSize[$imgCount]} />
				</a>
				<div>
					<img src="{$icon_path}information.png" onclick="agOpenInfoBox('[url={$image}][img]{$image}[/img][/url]')" style="cursor:pointer;" />
					{if $agora_user.is_superadmin || ($agora_config.o_allow_delete_attach && $user_id == $agora_user.id)}
						<img src="{$root_url}img/buttons/delete.png" alt="" title="##Delete##" onclick="window.location='{url task=upload action=userdelete type=# id=$images.name[$imgCount] user_id=$user_id}'" style="cursor: pointer; " />
					{/if}
				</div>
			</li>
			<!-- /{$imgCount++} -->
			{/foreach}
		{/if}
		</ul>
		</div>
	{/if}
	<div class="ag_clearer"></div><br />
	</div>
</div>